Pergunta de entrevista da empresa DXC Technology

Greedy algorithm, method overriding, oops etc