Codeforces Problem Perpendicular Segments Solution