Answer:
tbh I have no clue.
Explanation:
Code is in the attached screenshot.
Assumed it was written in Java based on your other question asked.
Know what the code should do