Detailed Instructions: In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to return the position of all the numerical elements in the given list in order. Assume the position of the 1st element to be 1. Return -1 if no numerical element is in the list.
Problem:['7789', 'd', 'q', '9625', '9605', 'E', 'W', 'r', 'o', '9287', '7561', '9147', 'R', '9017', '4899', '1669', '1167', 'e', 'h', '8777', '9753', '1427', '8867', '105', 'K', '765', 'v', '9791', 'U', '7929', '5779', 'B']
Solution:
1, 4, 5, 10, 11, 12, 14, 15, 16, 17, 20, 21, 22, 23, 24, 26, 28, 30, 31