Click here to read the complete problem statement.
This is one of the most easiest geometrical problems I ever had.