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: [170, 498, 490, 349, 135, 345, 287, 182, 394, 23, 97, 14, 418, 274, 285, 78, 147, 215, 104, 387]

Output: [170, 14, 490, 349, 135, 345, 287, 182, 394, 23, 97, 498, 418, 274, 285, 78, 147, 215, 104, 387]

Input: Consider Input: [147, 166, 285, 83, 18, 144, 240, 153, 15, 161, 168, 288, 415, 492, 155, 493, 165, 85, 110, 447]

Output: [147, 166, 285, 83, 18, 144, 240, 153, 493, 161, 168, 288, 415, 492, 155, 15, 165, 85, 110, 447]

Input: Consider Input: [265, 209, 433, 482, 412, 249, 19, 456, 256, 334, 50, 223, 458, 135, 65, 282, 309, 405, 274, 430]
Output: [265, 209, 433, 19, 412, 249, 482, 456, 256, 334, 50, 223, 458, 135, 65, 282, 309, 405, 274, 430]