Question d’entretien chez Spotify

Phone Interview: Asked about experience and current work. Tech question (on collabedit): Given a small string and a larger string, write a program to fin out if the smaller string can be generated from alphabets in the larger string. Big O complexity and best/worst case analysis.