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.

[EX Q]: [262, 28, 30, 382, 287, 474, 413, 349, 356, 15, 202, 313, 86, 17, 204, 306, 229, 227, 247, 47]
[EX A]: [262, 28, 30, 382, 287, 15, 413, 349, 356, 474, 202, 313, 86, 17, 204, 306, 229, 227, 247, 47]

[EX Q]: [189, 419, 469, 313, 257, 264, 297, 233, 291, 244, 77, 493, 142, 479, 163, 87, 162, 42, 128, 94]
[EX A]: [189, 419, 469, 313, 257, 264, 297, 233, 291, 244, 77, 42, 142, 479, 163, 87, 162, 493, 128, 94]

[EX Q]: [419, 339, 472, 142, 46, 298, 90, 160, 378, 258, 389, 305, 364, 138, 233, 274, 122, 78, 124, 322]
[EX A]:
[419, 339, 46, 142, 472, 298, 90, 160, 378, 258, 389, 305, 364, 138, 233, 274, 122, 78, 124, 322]