BNY interview question

OOps, OOPS basics, One DSA question