title: Max product of the three numbers for a given array of size N
body: <p>I need to write a  program to find the Max product of three numbers for a given array of size N.
  Is there any effective algorithm for this?
  I just need to know the algorithm steps. Non of algorithms that i thought works for all the test cases. 
  Thanks!
  FYI Array may contains +ve, -ve, or zero elements)</p>