Shares of Groupon surged 23% in premarket trading Tuesday after the daily deals company reported narrower losses and better-than-expected sales, giving investors hope that the company can steady its ship.