Pregunta de entrevista de IDFC FIRST Bank

They asked a coding question