Lumen Interview Question

They asked some puzzles