Solutions for codechef problems written in Java