Pregunta de entrevista de Tech Mahindra

Asked for to do code for given scenario.