TASK DEFINITION: In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to collate all the alphabetical elements at the start of the list followed by all the numerical elements of the list. Maintain the order in which the alphabetical elements appear in the given input list, and do the same for the numerical elements.
PROBLEM: ['p', '5531', '2467', '7415', 'w', '2487', 'V', '965', 'O', 't', '6221', 'J', 'J', '5297', 'v', '4443', 'w', 'D']

SOLUTION: p, w, V, O, t, J, J, v, w, D, 5531, 2467, 7415, 2487, 965, 6221, 5297, 4443

PROBLEM: ['1805', 'B', '6109', 'F', 'u', 'y', '8997', '2423', 'y', 'N', '4781']

SOLUTION: B, F, u, y, y, N, 1805, 6109, 8997, 2423, 4781

PROBLEM: ['4697', 'B', 'o', 'p', 'M', '8471', 'h', 'N', 's', 'l', 'e', '6607', '627', '1687', '6915', '3931', 'H', 'G', '9363', 'R', '8497']

SOLUTION:
B, o, p, M, h, N, s, l, e, H, G, R, 4697, 8471, 6607, 627, 1687, 6915, 3931, 9363, 8497