FireEye interview question

write the code for dining philosopher problem