I believe that one of the asserts in the stock profits check solutions is incorrect: assert stock_profit([60, 50, 51, 52, 40]) == 2
If I understand the rules correctly it should be 12 as 52-40 == 12