classSolution { public: Solution(vector<int>& nums) { original = nums; this->nums = nums; } /** Resets the array to its original configuration and return it. */ vector<int> reset(){ return original; } /** Returns a random shuffling of the array. */ vector<int> shuffle(){ std::random_device rd; std::mt19937 g(rd()); std::shuffle(nums.begin(), nums.end(), g); return nums; }