# 问题描述

A left rotation operation on an array shifts each of the array's elements 1 unit to the left. For example, if 2 left rotations are performed on array $[1,2,3,4,5]$ , then the array would become $[3,4,5,1,2]$.

Function Descriptions

Complete the function rotLeft as given below. It should return the resulting array of integers separated by space. The function rotLeft has the following parameter(s):

• An array of integers $a$.
• An integer $d$, the number of rotations.

Constraints

• $1\leq n \leq 10^5$
• $1\leq d \leq n$
• $1\leq a[i] \leq 10^6$

Sample

Input:
5 4
1 2 3 4 5
Output:
5 1 2 3 4

#!/bin/python3

import math
import os
import random
import re
import sys

def rotLeft(a, d):
pass

# 测试用例

`

Input
d = 10
a = 41 73 89 7 10 1 59 58 84 77 77 97 58 1 86 58 26 10 86 51