Detailed Instructions: 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.
Problem:[212, 178, 219, 360, 369, 19, 487, 129, 313, 97, 284, 476, 253, 23, 359, 238, 419, 371, 174, 434]
Solution:
[212, 178, 219, 360, 369, 487, 19, 129, 313, 97, 284, 476, 253, 23, 359, 238, 419, 371, 174, 434]