Solving Career Cup's questions in java and testing through junit tests