algo to check whether input string contents unique char or not