Added solution.java