Pregunta de entrevista de SavvyPro Education

It was a leet code algorithm question