Pergunta de entrevista da empresa Justworks

Given an array of letters, check that a string can be completed (including duplicates).