Pregunta de entrevista de Rakuten

Coding Questions of easy-mid difficulty level.