Barclays interview question

coding knowledge in C++ and probability questions