title: Meeting Conflict algorithms
body: <p>I had a interview today and was asked to check whether two meeting conflicts with each other or not. Each meeting has start time and end time. 
  I tried to answer the question but not that specific..can somebody throw some idea?<br></p>
  
  <pre><code>bool IsConflict(Datetime s1, Datetime e1, Datetime s2, Datetime e2)
  </code></pre>
  
  <p>should return true if Conflict is there and false if no conflict. </p>
  
  <p>E.g <br></p>
  
  <p>True if:<br> 
  (s1, e1)= 8,10<p>
  (s2, e2) = 9, 11<p></p>
  
  <p>(s1, e1)= 7,10<p>
  (s2, e2) = 8, 9</p>
  
  <p>(s1, e1)= 8,11<p>
  (s2, e2) = 9, 11
  and so on</p>