Pregunta de entrevista de Tata Consultancy Services

Basic coding questions, from BE syllabus.