LivingSocial Interview Question

Not very difficult.