Solve homework2-problem3: PointsInsideFigure