The Complete Guide to Triangle Minimum Path Sum: From Brute Force to System Design