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

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