I wanna the java and python code for the solution of question 5.
I wanna the java and python code for the solution of question 5.