Kth root problem answer is coming wron


code seems to be right but answer is coming wrong

@amoghsachdeva3 System.out.println(x); instead of System.out.print(x);
in line 27