ION Group Interview Question

They asked me for two puzzles.