Programing In Java

 Hello..

Hope you are having a great day, I have a problem and I need your help to solve it, So I have a Program and I took the code from a friend, it has some errors I want you to fix it, Ill attach it below, also I want to change every or most of the methods,

first thing I care about is the output then the big O of the program.

If you find a for loop change it to a nested for loop or change it to a recursion.

 

I need it after 12-15 hours max

Time is essential

 

Thank you for your time. 50~80$