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: [292, 152, 415, 277, 64, 30, 247, 444, 25, 348, 178, 167, 122, 347, 131, 484, 69, 22, 231, 349]
Output:
[292, 152, 415, 277, 64, 30, 247, 444, 25, 348, 178, 167, 122, 347, 131, 22, 69, 484, 231, 349]