Finding Endpoint With Midpoint And Endpoint