Sharp Posts Profit for First Time in Five Quarters