189. Rotate Array Given an array, rotate the array to the right by k steps, where k is non-negative. 123456class Solution {public: void rotate(vector<int>& nums, int k) { std::rotate(nums.begin(), nums.end() - (k % nums.size()), nums.end()); }};