You will be given a definition of a task first, then some input of the task.
In this task, you are given a list of integers you need to calculate and return the range of the integers which is the difference between maximum and minimum element in the list.

[399, 231, 174, 281, 329, 160, 313, 237, 139, 229, 104, 50, 328, 433, 92, 201, 95, 385, 407, 41]
Output:
392