Apolis Interview Question

2 easy logic questions and basic java knowledge.