Amazon Interview Question

Puzzles