Capital One Interview Question

Code signal standard problems with string and array manipulation