Pregunta de entrevista de Index Exchange

Technical wise a coding question to do