Pregunta de entrevista de Tata Consultancy Services

some basic questions on loops and oops