FireEye Interview Question

write the code for dining philosopher problem