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: Consider Input: [72, 154, 178, 240, 48, 305, 77, 311, 13, 488, 117, 442, 112, 490, 270, 150, 307, 263, 242, 40]

Output: [72, 154, 178, 240, 48, 305, 77, 311, 490, 488, 117, 442, 112, 13, 270, 150, 307, 263, 242, 40]


Input: Consider Input: [222, 187, 453, 396, 322, 161, 333, 308, 241, 460, 480, 252, 442, 343, 43, 80, 132, 316, 417, 269]

Output: [222, 187, 453, 396, 322, 161, 333, 308, 241, 460, 43, 252, 442, 343, 480, 80, 132, 316, 417, 269]


Input: Consider Input: [329, 163, 460, 187, 365, 470, 317, 350, 354, 431, 378, 271, 223, 294, 48, 118, 450, 151, 337, 284]


Output: [329, 163, 460, 187, 365, 48, 317, 350, 354, 431, 378, 271, 223, 294, 470, 118, 450, 151, 337, 284]