Pregunta de entrevista de Dubbizle

Problem solving question with code