Constructor interview question

Data manipulation tasks (shuffle, sort, build) using JavaScript.