Pergunta de entrevista da empresa Compass

Implement a function to check if given array of letters is sufficient to form a given word.