Domanda di colloquio di IBM

Two coding question base on Data Structures and Algorithms