Count Shadow Pairs II
Count rising index pairs with no middle value strictly between their endpoints. Values equal to an endpoint do not block.
Count rising index pairs with no middle value strictly between their endpoints. Values equal to an endpoint do not block.