Pregunta de entrevista de Infosys

Average Question from leetcode to solve