here is a c++ program to figure out n appointments which conflicts each other