Completed Problem3 and Problem4

Added Problem 3 and Problem 4 class and .java files