General Atomics Interview Question

String manipulation, pattern matching.