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.

[Q]: [402, 205, 172, 213, 11, 123, 489, 47, 283, 158, 291, 63, 77, 246, 463, 103, 372, 167, 245, 498]
[A]: [402, 205, 172, 213, 498, 123, 489, 47, 283, 158, 291, 63, 77, 246, 463, 103, 372, 167, 245, 11]

[Q]: [480, 194, 225, 247, 223, 287, 237, 418, 83, 73, 170, 91, 118, 325, 211, 62, 440, 191, 384, 442]
[A]: [62, 194, 225, 247, 223, 287, 237, 418, 83, 73, 170, 91, 118, 325, 211, 480, 440, 191, 384, 442]

[Q]: [339, 40, 321, 337, 489, 221, 228, 415, 267, 120, 408, 287, 363, 317, 99, 193, 262, 474, 448, 443]
[A]:
[339, 489, 321, 337, 40, 221, 228, 415, 267, 120, 408, 287, 363, 317, 99, 193, 262, 474, 448, 443]