Pregunta de entrevista de Tata Consultancy Services

Basic Undergrad programming questions.