[LC] Added solution to triangle.