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: [402, 205, 172, 213, 11, 123, 489, 47, 283, 158, 291, 63, 77, 246, 463, 103, 372, 167, 245, 498]
Output:
[402, 205, 172, 213, 498, 123, 489, 47, 283, 158, 291, 63, 77, 246, 463, 103, 372, 167, 245, 11]