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: [372, 297, 467, 302, 239, 498, 99, 110, 432, 442, 496, 478, 98, 458, 449, 331, 427, 175, 315, 49]
Output:
[372, 297, 467, 302, 239, 49, 99, 110, 432, 442, 496, 478, 98, 458, 449, 331, 427, 175, 315, 498]