From Hash Maps to Bitmasks: A Journey through LeetCode 2351 in Go

The problem 2351. First Letter to Appear Twice is deceptively simple: given a string s, return the first character that appears twice.