Definition: In this task, you are given a list of unique integers you need to swap the positions of maximum and minimum element in the list and return the updated list.
Input: [115, 431, 65, 400, 54, 160, 43, 40, 372, 125, 495, 481, 180, 484, 35, 230, 466, 20, 375, 252]
Output:
[115, 431, 65, 400, 54, 160, 43, 40, 372, 125, 20, 481, 180, 484, 35, 230, 466, 495, 375, 252]