D. Number Of Permutations time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a sequence of nn pairs of integers: (a1,b1),(a2,b2),…,(an,bn)(a1,b1),(a2,b2),…,(an,bn). This sequenc…