Added Problem 30

Java solution to problem 30 added