LinkedIn interview question

Shuffle array