It has been getting too much direct sun and maybe not enough water. Keep it close to a sunny window, but just far enough away that the rays of the sun do not fall on it directly at any time during the day.
Water it thoroughly as soon as the top half-inch of soil feels dry to the touch.