Pergunta de entrevista da empresa Cognizant

Puzzle related questions and basics of programming