give array rotate array right k step k nonnegative Example 1input num 1234567 k 3output 5671234explanationrotate 1 step right 7123456rotate 2 step right 6712345rotate 3 step right 5671234example 2input num 1100399 k 2output 3991100explanation rotate 1 step right 9911003rotate 2 step right 3991100 Constraints1 numslength 105231 numsi 231 10 k 105 Follow uptry come solution there different way solve problemcould inplace o1 extra space