Snap interview question

outline the algorithm for triangulation