Pregunta de entrevista de Swiggy

Leet code medium questions basic oops and cs concepts.