Good pairs of substrings Submissions | CodeChef