Driver Code
public static void main ( String [ ] args ) { String arr [ ] = { " abcde " , " abcce " , " abcdf " , " abcde " } ; int N = arr . length ; System . out . println ( distinct_str ( arr , N ) ) ; } }