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: [332, 397, 20, 176, 157, 58, 415, 67, 299, 201, 250, 295, 417, 310, 302, 132, 138, 117, 440, 315]
Student:
[332, 397, 440, 176, 157, 58, 415, 67, 299, 201, 250, 295, 417, 310, 302, 132, 138, 117, 20, 315]