Domanda di colloquio di ION Group

Approach of two puzzles (riddles from GeeksforGeeks).