Function to find the pairs from the array such that one number is reverse of the other
static int countReverse ( int [ ] arr , int n ) { Dictionary < int , int > freq = new Dictionary < int , int > ( ) ;