Check if the minute value is valid , if not valid then skip the current iteration , to check ' minute ' value flag is set to 0.
if ( not isValid ( chr ( m1 ) , chr ( m2 ) , strr , 0 ) ) : NEW_LINE INDENT continue NEW_LINE DEDENT if ( inRange ( i , j , L , R ) ) : NEW_LINE INDENT displayTime ( i , j ) NEW_LINE return NEW_LINE DEDENT if ( inRange ( i , j , L , R ) ) : NEW_LINE displayTime ( i , j ) NEW_LINE else : NEW_LINE print ( - 1 ) NEW_LINE