Pregunta de entrevista de Adyen

3 Hackkerrank test which is medium and hard