is this program for chef sum(september first task) not correct for java hotspot?

QUESTION DELETED

You shouldn’t be sharing code during live contest but I can tell you one thing you don’t need any of the arbitrary print statements like you have “Enter no. of test cases” and so on.

@vijju123 is it okay to tell what I just told him during live contest?