For this Question: Given an array A[] and a range [a, b]. The task is to partition the array around the range such that array is divided into three parts.
1) All elements smaller than a come first.
2) All elements in range a to b come next.
3) All elements greater than b appear in the end.
The individual elements of three sets can appear in any order. You are required to return the modified arranged array.

<b>Note:-</b> 
In the case of custom input, you will get 1 if your code is correct else get a 0.<b>User Task:</b>
Since this is a functional problem you don't have to worry about the input. You just have to complete the function <b>threeWayPartition()</b> which contains following arguments.

A: input array list
low: starting integer of range
high: ending integer of range

<b>Constraints:</b>
1 <= T <= 100
1 <= N <= 10<sup>4</sup>
1 <= A[i] <= 10<sup>5</sup>
1 <= low <= high <= 10<sup>5</sup>

The Sum of N over all test case doesn't exceed 10^5For each test case return the modified array.Sample Input:
2
5
1 8 3 3 4
3 5
3
1 2 3
1 3

Sample Output:
1 3 3 4 8
1 2 3

<b>Explanation:</b>
Testcase 1: First, the array has elements less than or equal to 3. Then, elements between 3 and 5. And, finally elements greater than 5. So, one of the possible outputs is 1 3 3 4 8.
Testcase 2: First, the array has elements less than or equal to 1. Then, elements between 1 and 3. And, finally elements greater than 3. So, the output is 1 2 3., I have written this Solution Code: def threewayPartition(arr,low,high):
    i=low-1
    pivot = arr[high]

    for j in range(low,high):
        if arr[j]<=pivot:
            i+=1
            arr[i],arr[j]=arr[j],arr[i]

    i+=1
    arr[i],arr[high]=arr[high],arr[i]
    return i
    
def quickSort(arr,low,high):
    if low<high:
        key=threewayPartition(arr,low,high)
        quickSort(arr,low,key-1)
        quickSort(arr,key+1,high)

    return arr

t= int(input())
while t>0:
    s = int(input())
    arr = list(map(int,input().split()))
    a,b = list(map(int,input().split()))
    print(1)



    t-=1, In this Programming Language: Python, Now tell me if this Code is compilable or not?