If val is less than zero then we have find the number of obstacles required
if ( val <= 0 ) : NEW_LINE INDENT return c NEW_LINE DEDENT else : NEW_LINE INDENT c += 1 NEW_LINE DEDENT if ( val > 0 ) : NEW_LINE return - 1 NEW_LINE