Aloha Technology interview question

OOPS concepts