Checking condition for Anagram
Array . Sort ( tempArray1 ) ; Array . Sort ( tempArray2 ) ; string copy_S1 = new string ( tempArray1 ) ; string copy_S2 = new string ( tempArray2 ) ; if ( ! copy_S1 . Equals ( copy_S2 ) ) { return false ; } for ( int i = 1 ; i < n ; i ++ ) {