BNY interview question

Create a class, a question using a greedy algorithm strategy