LinkedIn interview question

shuffle an array