Pregunta de entrevista de TATA ELXSI

Mostly technical and coding question