Pregunta de entrevista de Rakuten

easy-medium algorithm question + general technical question