Solution java

Solution Java (level 0, 1, 2)