Arista interview question

char* printing results in different formats. remove patterns from a string.