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.
[125, 111, 199, 461, 13, 44, 324, 292, 51, 166, 14, 223, 228, 331, 334, 180, 304, 188, 267, 367]
A:
[125, 111, 199, 13, 461, 44, 324, 292, 51, 166, 14, 223, 228, 331, 334, 180, 304, 188, 267, 367]