Now consider all cases when first element forms a triplet and removed . Check for all possible triplets ( low , i , j )
for i in range ( low + 1 , high ) : NEW_LINE INDENT for j in range ( i + 1 , high + 1 ) : NEW_LINE DEDENT