Domanda di colloquio di Hexagon

Few puzzles and algorithm and logic for some codes