Find the Output: Triangular nested-loop differences