Update Problems.java

Problem 3 solved