Forio interview question

Find the matching letters that two strings share.

Interview Answer

Anonymous

11 Dec 2015

used a hashmap to store all the letters from one string and then used a for loop to cylce through the second string and see if any of the letters existed as keys in the hashmap.