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: [295, 472, 330, 159, 456, 461, 471, 120, 77, 256, 378, 313, 284, 286, 442, 50, 422, 187, 350, 324]

Output: [295, 50, 330, 159, 456, 461, 471, 120, 77, 256, 378, 313, 284, 286, 442, 472, 422, 187, 350, 324]


Input: Consider Input: [311, 319, 362, 321, 22, 213, 35, 453, 117, 287, 461, 66, 234, 37, 250, 470, 108, 25, 334, 387]

Output: [311, 319, 362, 321, 470, 213, 35, 453, 117, 287, 461, 66, 234, 37, 250, 22, 108, 25, 334, 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]