C ++ implementation to construct a string of length L such that each substring of length X has exactly Y distinct letters .
#include <iostream> NEW_LINE using namespace std ; void String ( int l , int x , int y ) {