I think you should change sorting to reverse in order_population function, because right now it is sorting from the lowest value to highest, but I think we want the highest value to be first, so that could improve the algortihm
@pablito4216