Pergunta de entrevista da empresa Zensar Technologies

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