If flag is equal to 0 , it means there is no answer .
if ( flag == 0 ) : NEW_LINE INDENT print ( " No ▁ such ▁ subarray ! " ) NEW_LINE DEDENT else : NEW_LINE INDENT for i in range ( start , end + 1 ) : NEW_LINE INDENT print ( arr [ i ] , end = " ▁ " ) NEW_LINE DEDENT DEDENT