Rotate Array — JavaScript medium interview problem
Given an integer array `nums`, rotate the array to the right by `k` steps. Return the rotated array (in-place mutation is fine).
Tags: reverse
Practice this Arrays problem free in the JS Interview Playground with automated tests and unlockable solutions.