Pergunta de entrevista da empresa SavvyPro Education

It was a leet code algorithm question