java and python program for the following question

profileprapulmutyala