LeetCode
Bulls and Cows
Click
here
for an explanation.