Meta interview question

find a needle in a haystack given two strings