Keystone Logic Interview Question

Basic java and Object oriented program