A solution implemented in C to Dining Philosophers Problem