This function returns true if contents of arr1 [ ] and arr2 [ ] are same , otherwise false .
bool compare ( char * arr1 , char * arr2 ) { for ( int i = 0 ; i < ALL_CHARS ; i ++ ) if ( arr1 [ i ] != arr2 [ i ] ) return false ; return true ; }