Baidu interview question

randomly disorder an array