In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to return the sum of all the numerical elements in the list A between the positions i and j (including positions i and j). Return 0 if no numerical element is present in the list between the given ranges. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j.
2, 20, ['p', '1525', 'U', '3981', '4519', 'B', '5531', '1', '1283', 'a', 'W', '6829', 'Y', 'R', '3713', '4395', '6259', '103', 'q', '3675', '5515', 'w', '7987', 'q', '7989', 'm', 'M']