ION Group Interview Question

Just some puzzle basic gfg puzzles