Tech Pandas interview question

OPPs related concept with example