You are playing the Bulls and Cows game with your friend.
You write down a secret number and ask your friend to guess what the number is. When your friend makes a guess, you provide a hint with the following info:
Given the secret number secret and your friend's guess guess, return the hint for your friend's guess.
The hint should be formatted as "xAyB", where x is the number of bulls and y is the number of cows. Note that both secret and guess may contain duplicate digits.
1 <= secret.length, guess.length <= 1000secret.length == guess.lengthsecret and guess consist of digits onlysecret = "1807", guess = "7810""1A3B"secret = "1123", guess = "0111""1A1B"