Pregunta de entrevista de Justworks

check if the input bucket array could make a given string.