Recursion Triangle Problem