Pregunta de entrevista de HCLTech

Scripting interview was little difficult as I am bad in coding.