Deutsche Bank Interview Question

Given two strings, see if you can form one string from other. They were looking for the fastest algorithm!