Pregunta de entrevista de BNY

Create a class, a question using a greedy algorithm strategy