Meta Interview Question

find a needle in a haystack given two strings