Minimum money needed

why my code is not passing any test cases

why there is no reply

Hey,can you please reopen the doubt?
I am unable to find the error in your code.
Your logic and implementation appear correct to me.
Thanks and sorry for inconvenience

i dont how to reopen the doubt ?

can you tell me wwhy my test cases are failing