Compile time error in java program

In the java program that I wrote, it is giving me the compile time error saying that my file should be saved with the name of public class in my program.Now obviously that is the rule in java but in codechef how can I save my file with particular name.

Just don’t declare it public and your code will work.btw Why do you want to make it out public anyway?
You can check:https://www.codechef.com/viewsolution/21678258
PS:put any name in place of Solution your code will work.

Just make it public and your code will work.

showbox

Promotions are not allowed here otherwise you will be suspended

//