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.

[180, 328, 143, 398, 304, 22, 357, 214, 233, 334, 242, 477, 55, 281, 497, 71, 173, 381, 314, 336]
[180, 328, 143, 398, 304, 497, 357, 214, 233, 334, 242, 477, 55, 281, 22, 71, 173, 381, 314, 336]