Solved ChocolateByNumbers in java