Array Triplet Recursion