AMD Interview Question

String manipulation in C++ to take out certain characters.