Barclays Interview Question

Object oriented programming questions and probability