CableLabs Interview Question

Programming question in C involving strings. Think LeetCode easy.