X Interview Question

Remove certain characters from an array