use a bitmask to track used chars from input.  Input must now be limited to 64 chars