Pregunta de entrevista de Bluevine

Basic JS algorithm questions, output questions. Unit testing.