Pergunta de entrevista da empresa IBM

Two coding question base on Data Structures and Algorithms