FactSet Interview Question

Write the algorithm for dining Philosopher's problem.