title: Maximum area of triangle having all vertices of different color
body: <p>Points from (0,0) to (R,C) in the cartesian plane are colored r, g or b. Make a triangle using these points such that-</p>
  
  <pre><code>a) All three vertices are of different colors.
  b) At least one side of triangle is parallel to either of the axes.
  c) Area of the triangle is maximum possible.
  </code></pre>
  
  <p>Output the maximum possible area.
  Constraints : <code>1&lt;=R&lt;=1000</code> , <code>1&lt;=C&lt;=1000</code></p>
  
  <p>Can someone please let me know the approach to this question?</p>