Accenture interview question

it was mainly based on oops