Find Point Problem

The solution for Find Point Problem in Math section of Hacker Rank