Barclays interview question

Stats and probability, algorithms and implementation