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.
--------
Question: [362, 207, 161, 47, 268, 177, 18, 311, 12, 137, 368, 493, 300, 447, 140, 448, 495, 405, 388, 244]

Answer: [362, 207, 161, 47, 268, 177, 18, 311, 495, 137, 368, 493, 300, 447, 140, 448, 12, 405, 388, 244]

Question: [406, 12, 301, 282, 125, 192, 14, 52, 402, 112, 232, 270, 86, 169, 434, 69, 379, 200, 165, 263]

Answer: [406, 434, 301, 282, 125, 192, 14, 52, 402, 112, 232, 270, 86, 169, 12, 69, 379, 200, 165, 263]

Question: [302, 130, 294, 366, 18, 311, 261, 263, 349, 160, 48, 323, 455, 177, 477, 384, 69, 377, 232, 107]

Answer:
[302, 130, 294, 366, 477, 311, 261, 263, 349, 160, 48, 323, 455, 177, 18, 384, 69, 377, 232, 107]