Lumen interview question

They asked some puzzles