Meesho interview question

Find the second most repeated character in the string