Pregunta de entrevista de Altimetrik

hackerrank assessment during interview at the beginning