You are given two arrays $$$a$$$ and $$$b$$$, each of size $$$n$$$.
Count the number of good subarrays $$$[l,r]$$$.
A subarray $$$[l,r]$$$ is considered good if the following two conditions hold:
The first line of the input contains one single integer $$$tc$$$ $$$(1 \le tc \le 10^5)$$$ — the number of test cases.
The first line of each test case contains one single integer $$$n$$$ $$$(1 \le n \le 5 \cdot 10^5)$$$ — the length of the array.
The second line contains $$$n$$$ integers $$$a_i$$$ $$$(1 \le a_i \le 10^9)$$$ — the array $$$a$$$.
The third line contains $$$n$$$ integers $$$b_i$$$ $$$(1 \le b_i \le 10^9)$$$ — the array $$$b$$$.
It is guaranteed that the sum of $$$n$$$ over all testcases doesn't exceed $$$5 \cdot 10^5$$$.
For each test case print the number of good subarrays.
231 3 22 1 351 2 3 4 55 4 3 2 1
2 3