Google Cloud interview question

String hashmap question - pattern was leetcode type.