Find Common Characters in Two Strings

Write a code that takes two strings and returns a dictionary with the characters that appear in both strings, along with their frequency in each string.
apple
grape
Total : 0 Discussion
Login