In this task, you are given a list of numbers. The list of numbers is separated with comma and inside brackets. You need to remove the maximum(the number with the largest value) and minimum(the number with the smallest value) element from the list and return the list in the same order as input. Your answer should be a list of numbers separated by comma, inside brackets.
--------
Question: [138, 466, 396, 427, 497, 43, 221, 440, 116, 290, 104, 371, 304, 365, 460, 36, 146, 117, 448, 148]

Answer: [138, 466, 396, 427, 43, 221, 440, 116, 290, 104, 371, 304, 365, 460, 146, 117, 448, 148]

Question: [348, 331, 85, 114, 388, 240, 368, 60, 452, 27, 189, 219, 236, 175, 478, 89, 442, 410, 281, 171]

Answer: [348, 331, 85, 114, 388, 240, 368, 60, 452, 189, 219, 236, 175, 89, 442, 410, 281, 171]

Question: [149, 218, 201, 435, 351, 391, 136, 289, 16, 187, 50, 257, 276, 129, 372, 467, 285, 334, 312, 117]

Answer:
[149, 218, 201, 435, 351, 391, 136, 289, 187, 50, 257, 276, 129, 372, 285, 334, 312, 117]