Intel Corporation interview question

Write program that split cards in same probabilityo