Barclays Interview Question

5 horse race problem