Pergunta de entrevista da empresa FactSet

Write the algorithm for dining Philosopher's problem.