def steps_to_basement(instructions):
    """Determine number of steps needed to reach the basement."""
    floor = 0
    for step, instruction in enumerate(instructions):
        if instruction == '(':
            floor += 1
        elif instruction == ')':
            floor -= 1
        if floor == -1:
            return step + 1
    raise RuntimeError('Failed to reach basement.')