This is a solution to the BotClean problem that I wrote without looking up the greedy algorithm, which yields best results