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: [320, 10, 227, 416, 142, 312, 60, 139, 293, 413, 376, 404, 407, 180, 379, 303, 286, 315, 26, 240]

Answer: [320, 416, 227, 10, 142, 312, 60, 139, 293, 413, 376, 404, 407, 180, 379, 303, 286, 315, 26, 240]


Question: [81, 268, 174, 47, 16, 230, 165, 137, 291, 457, 188, 413, 36, 238, 454, 284, 115, 378, 356, 135]

Answer: [81, 268, 174, 47, 457, 230, 165, 137, 291, 16, 188, 413, 36, 238, 454, 284, 115, 378, 356, 135]


Question: [72, 154, 178, 240, 48, 305, 77, 311, 13, 488, 117, 442, 112, 490, 270, 150, 307, 263, 242, 40]

Answer:
[72, 154, 178, 240, 48, 305, 77, 311, 490, 488, 117, 442, 112, 13, 270, 150, 307, 263, 242, 40]