right shift array by given K bit