Selecting the triplets such that all array elements can be made equal to arr [ N - 1 ]
for i in range ( 0 , N - 3 , 2 ) : NEW_LINE INDENT print ( i , " ▁ " , ( i + 1 ) , " ▁ " , ( N - 1 ) , end = " ▁ " ) ; NEW_LINE DEDENT else : NEW_LINE