Q. There is one dimesion array of size 3*n for n=5
ex-int arr[3*n]=( a1, b1, c1 , a2 , b2, c2, a3, b3, c3 , a4 , b4 , c4 , a5 , b5 , c5 );
without using an extra memory you have to re-arrange the element of array like
a1 a2 a3 a4 a5 b1 b2 b3 b4 b5 c1 c2 c3 c4 c5