# Compute the Number of Breakpoints in a Permutation
solved by 313

## Number of Breakpoints Problem

*Find the number of breakpoints in a permutation.*

Given: A signed permutation *P*.

Return: The number of breakpoints in *P*.

## Sample Dataset

(+3 +4 +5 -12 -8 -7 -6 +1 +2 +10 +9 -11 +13 +14)

## Sample Output

Please login to solve this problem.