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:['D', 'r', '6095', '7675', 'j', 'g', '9939', 'O', 'Y', 'A', 'm', '3549', 'R', 'f', 'x', '4651', 'P', '3309', 'j', '657', 'f', '3175', '3765', 'D', '3051', '9213', '2281', 'N', 'L', '9831', '4843', 'y', '1849', 'I', '4257', 'y', '4169', '1181', '8193', 'G']
Solution:
3, 4, 7, 12, 16, 18, 20, 22, 23, 25, 26, 27, 30, 31, 33, 35, 37, 38, 39