UKG interview question

Q: OOP - Implement an API, Java