btw, those constraints given, am i supposed to place it in a if statement to check it? or the test cases here will automatically not exceed within the given constraints?
First check it there is enough balance including that 0.5 when subtracted and now check if it is a multiple of 5. Here a corresponds to your withdraw and b corresponds to your cash
by the way can you please accept this answer! So that i can close this question. Left to my answer there is a Vote-Up and Vote Down Symbol. Below that there is a tick mark. That is the way to accept it! thanks