Feedback for STJ04 problem

Learning course: Java for problem solving - 2
Problem Link: CodeChef: Practical coding for everyone


the question is not submitting its again and again showing time limit exceeded

Its working fine for me . Please check your code may be there is something wrong with your code.