During a recent coding interview,I was given two arguments, one was a string and the other was an integer. I was asked to return the character/characters that appeared the number of times that corresponds with the integer. While that seemed easy to do, I was stumped with how to approach…