Pregunta de entrevista de SurveyMonkey

can't really remember the questions but it was something you might see on leet code