Quantela interview question

OOPS concept