CodeEval: Pass Triangle (solved)