user
Write the code for swapping two elements in a given array.

Now complete the following instance -
Input: No input
Output:
assistant
```
def swapTwoElements(arr, i, j):
  temp = arr[i]
  arr[i] = arr[j]
  arr[j] = temp
```