ION Group interview question

They asked me for two puzzles.