Bus of Characters - 982B - Codeforces
Bus of Characters - 982B - Codeforces

Did better this time, got it right on the first try.
I had written buggy code tho, need to fix.

paramsingh/codechef-solutions,paramsingh/cp,paramsingh/codechef-solutions,paramsingh/codechef-solutions,paramsingh/cp,paramsingh/cp,paramsingh/cp,paramsingh/codechef-solutions,paramsingh/cp