Call it a comeback: Groupon posts profit, share prices surge