Check the given conditions
if ( i > 0 and i + 1 < N ) : NEW_LINE INDENT if ( temp [ i ] < temp [ i + 1 ] and temp [ i ] < temp [ i - 1 ] ) : NEW_LINE INDENT ct += 1 NEW_LINE DEDENT DEDENT print ( " Count ▁ of ▁ triplets : " , ct ) NEW_LINE print ( " Array : " , end = " " ) NEW_LINE for i in range ( N ) : NEW_LINE print ( temp [ i ] , end = " ▁ " ) NEW_LINE