text: Driver Code
code: public static void Main ( ) { string [ ] arr = { " apple " , " appe " , " apl " , " aapl " , " appax " } ; string S = " app " ; int N = 5 ; Console . WriteLine ( lexicographicallyString ( arr , N , S ) ) ; } }