Amazon Interview Question

Tight Deadline, how did you solve it