Pergunta de entrevista da empresa VinSol

frog puzzle and then a code in C for that puzzle.