Pregunta de entrevista de Tata Consultancy Services

Basic coding question and basic HR question.