Barclays interview question

Java OOPs concept, basic coding questions