Solved Triangle - More COnditionals on hackerrank.com