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: [335, 387, 238, 71, 92, 382, 227, 348, 383, 475, 117, 181, 345, 288, 23, 397, 39, 273, 343, 202]

[335, 387, 238, 71, 92, 382, 227, 348, 383, 23, 117, 181, 345, 288, 475, 397, 39, 273, 343, 202]