Microsoft interview question

card shuffling algorithm