Pergunta de entrevista da empresa Turing

Given an integer array nums, rotate the array to the right by k steps, where k is non-negative.