Maximum Triangle Sum

https://www.codeeval.com/public_sc/89/