6. Write a function in C that right rotates the contents of a given integer array. For example, if A =
{45, 23, 11, 87, −4, 6, 26, 10}, then we have A = {23, 11, 87, −4, 6, 26, 10, 45} after it has been
left rotated. (10%)