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: ['7361', 'H', 'd', '1811', '8801', 'D', '245', 'i', 'q', '4507', '3811', '4643', '5653', '5799', 'A', 'Q', 'X', 'i', '1595', 'U', 'X', 'z', 'X', '3265', 'O', 'j', 'n', '573', 'A', 'J', '769', '5933', 's', 'I', '9749']

SOLUTION: H, d, D, i, q, A, Q, X, i, U, X, z, X, O, j, n, A, J, s, I, 7361, 1811, 8801, 245, 4507, 3811, 4643, 5653, 5799, 1595, 3265, 573, 769, 5933, 9749

PROBLEM: ['1353', '917', 'W', '3863']

SOLUTION: W, 1353, 917, 3863

PROBLEM: ['2227', 'Q', 'D', 'l', 'H', '8151', '2671']

SOLUTION:
Q, D, l, H, 2227, 8151, 2671