Topic: Array Problem / Level: intermediate

Problem: Implement a function to rotate an array by k positions to the right without using extra space.

Run the code to see the output here...