Barclays interview question

project dsa oops cn and os