Morgan Stanley Interview Question

Blue and red ball mislabeled problem.