X interview question

some easy Java OOP implementation