CPP program to find lexicographically next word which contains first K letters of the English alphabet and does not contain a palindrome as it 's substring of length more than one.
#include <bits/stdc++.h> NEW_LINE using namespace std ;