Capital One Interview Question

Manipulate an array of characters to ignore certain characters.