implement a simple algorithm to find the first unique char of  char sequence