Teacher: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.
Teacher: Now, understand the problem? Solve this instance: [357, 126, 185, 18, 459, 254, 454, 404, 377, 134, 445, 209, 135, 462, 251, 23, 270, 40, 302, 19]
Student:
[357, 126, 185, 462, 459, 254, 454, 404, 377, 134, 445, 209, 135, 18, 251, 23, 270, 40, 302, 19]