Basically I solved it using the previous task way of solving, but now finding the min value. The code works so I don't know why it's wrong? Any help is appreciated!