Walmart Interview Question

DS. Algo and design questions, puzzles