Quantiphi interview question

oops concepts