Example 1 Input 4 Output 1 1 2 1 2 3 1 2 3 4 Explanation Each row counts from 1 up to its row number.