Move your code into your sololearn profile in code bits and share it. Otherwise is difficult to get help. I cannot make changes to your code form that link you provide, in order to see what is going wrong. As i see you just have wrong name of main class.
In sololearn it works ok.