Groupon Interview Question

some algorithm problems