Pergunta de entrevista da empresa Tally Solutions

Dsa based with some puzzles