Domanda di colloquio di IBM

Two coding questions were asked