Pregunta de entrevista de Trust Bank Singapore

Leetcode easy question for Hackerrank