Walmart Interview Question

puzzles and algorithms