Pregunta de entrevista de Tata Consultancy Services

Python Algorithm, some basic oops concept