Epicor Software interview question

Q: Find the frequency of characters in a string Q. Reverse a string