intersection of string

given two strings returning the common element.