It is a simple problem to test how reliably you can handle strings. https://www.codechef.com/problems/CFMM