Find longest unique-character substring | Snowflake