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: ['7141', '3539', '5309', 'R', 'd', 'l', 'p', '7749']

SOLUTION: R, d, l, p, 7141, 3539, 5309, 7749

PROBLEM: ['G', 'G', '2545', 'c', '2661', '9995', '3151', 'o', '5479', '8223', 'z', '3977', '5659', '3137', '8157', 'o', 'x', 'q', 'E', 'R', 'Z', '3961', 'g', 's']

SOLUTION: G, G, c, o, z, o, x, q, E, R, Z, g, s, 2545, 2661, 9995, 3151, 5479, 8223, 3977, 5659, 3137, 8157, 3961

PROBLEM: ['f', '9873', '7923', '5493', '2221', 'M', '3421', 'k']

SOLUTION:
f, M, k, 9873, 7923, 5493, 2221, 3421