Firstsource Solutions interview question

Basic oops concepts