IBM interview question

OOPS design priciples