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.

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

[381, 400, 249, 254, 218, 89, 138, 417, 447, 419, 83, 15, 108, 228, 307, 102, 226, 65, 320, 224]
[381, 400, 249, 254, 218, 89, 138, 417, 15, 419, 83, 447, 108, 228, 307, 102, 226, 65, 320, 224]

[76, 66, 180, 140, 291, 342, 333, 13, 343, 279, 206, 292, 290, 275, 398, 258, 139, 271, 236, 21]

[76, 66, 180, 140, 291, 342, 333, 398, 343, 279, 206, 292, 290, 275, 13, 258, 139, 271, 236, 21]

