Amazon Interview Question

How did you come up with the second round of programming problems?