배열이 한번 rotation되면 왼쪽에 있는 값이 오른쪽으로 가게 되는데, 이것을 d번 반복하면 된다. input으로 배열의 크기, rotation 수, 배열을 입력받는다. output은 d번 rotation된 배열이다. int* rotateLeft(int d, int arr_count, int* arr, int* result_count) { int *a = malloc(arr_count*sizeof(int)); *result_count = arr_count; for(int i=0; i