Pergunta de entrevista da empresa innoscripta

Solve a given problem. Questions were a list of logical problems like from leetccode