Hexagon Interview Question

Basic puzzles and logic for simple codes like sorting if you don't come from cs/it branch