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: [41, 462, 109, 353, 276, 318, 95, 383, 102, 150, 229, 211, 114, 118, 288, 113, 249, 107, 320, 368]
Output:
[462, 41, 109, 353, 276, 318, 95, 383, 102, 150, 229, 211, 114, 118, 288, 113, 249, 107, 320, 368]