Simple Java Interview Test