Amazon Interview Question

They asked 1 programming question for each phone interview. During the on-site, a system design, 3 programming questions were asked. System design and 2 questions were fairly easy but the bar-raiser was seriously hard, considering thet only left me 20 minutes to solve it. I got the solution but didn't have enough time to code it on white board.