Morgan Stanley interview question

Blue and red ball mislabeled problem.