FactSet interview question

Write the algorithm for dining Philosopher's problem.