Driver Code
public static void main ( String [ ] args ) { String arr [ ] = { " fdd " , " fhh " } ; int N = arr . length ; if ( checkEqual ( arr , N ) ) { System . out . print ( " Yes " ) ; } else { System . out . print ( " No " ) ; } } }