if we have array,
int[] arr=new arr[26];
so we can have an input string of one character or a million of characters. Anagram will be checked only by the array of 2