You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: 299.Bulls and Cows.go
    path of file: ./repos/LeetCode-Go/leetcode/0299.Bulls-and-Cows
    
    the code of the file until where you have to start completion: package leetcode

import "strconv"

func getHint(se
    
func getHint(secret string, guess string) string {
	cntA, cntB := 0, 0
	mpS := make(map[byte]int)
	var strG []byte
	n := len(secret)
	var ans string
	for i := 0; i < n; i++ {
		if secret[i] == guess[i] {
			cntA++
		} else {
			mpS[secret[i]] += 1
			strG = append(strG, guess[i])
		}
	}
	for _, v := range strG {
		if _, ok := mpS[v]; ok {
			if mpS[v] > 1 {
				mpS[v] -= 1
			} else {
				delete(mpS, v)
			}
			cntB++
		}
	}
	ans += strconv.Itoa(cntA) + "A" + strconv.Itoa(cntB) + "B"
	return ans
}