Help please to solve this Java exercise I tried a lot but I'm stuck
https://code.sololearn.com/cvjNnlv9p48N/?ref=app You have saved up an amount of money, âŹ500. Being a kind person, you like to help your friends by giving them small loans. Your friends have asked if they can borrow the following amounts from you. 60,20,100,80,40,300,200,100. Loans will be granted on a first come, first served basis. Write a Java program, which processes these loan request amounts. If there is enough money remaining in the kitty, the full amount of the loan request should be granted. If, however, the amount of the loan request exceeds the amount of money remaining: âą Whatever amount of money is left in the kitty should be given out. For example, if the balance remaining is âŹ200 and the loan request is for âŹ300, the balance remaining of âŹ200 should be given out. Any outstanding loan request amounts should then be displayed in the console.