Function to return the lexicographically smallest string of length n that satisfies the given condition
string lexo_small ( int n , int k ) { string arr = " " ; for ( int i = 0 ; i < n ; i ++ ) arr += ' a ' ;