Zensar Technologies interview question

It was a very basic interview They asked me 2 questions: 1. Reverse string using loop and no inbuilt functions 2. Rotate array by k units such that the last element moves to the first location