i -> j -> i -> j -> k -> j -> k
for p in range ( K ) : NEW_LINE INDENT if ( p & 1 ) : NEW_LINE INDENT print ( j , end = " ▁ " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( i , end = " ▁ " ) NEW_LINE DEDENT DEDENT