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.

[239, 337, 46, 411, 105, 146, 256, 320, 399, 111, 301, 80, 174, 17, 124, 188, 162, 16, 157, 339]
Output:
395