Mastercard Interview Question

Write program to reverse a string What smean by interface where you have used in your frame work Write program to count occurence of each character in the string.