Arista Networks interview question

Given two strings, see if you can create string1, using the characters available in string2.