Q: 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.
[419, 339, 472, 142, 46, 298, 90, 160, 378, 258, 389, 305, 364, 138, 233, 274, 122, 78, 124, 322]
A:
[419, 339, 46, 142, 472, 298, 90, 160, 378, 258, 389, 305, 364, 138, 233, 274, 122, 78, 124, 322]