Queries to return the absolute difference between L-th smallest number and the R-th smallest number
Given an array arr[] of N unique elements and Q queries. Every query consists of two integers L and R. The task is to print the absolute difference between the indices of the Lth smallest and the Rth smallest element. Examples: Input: arr[] = {1, 5, 4, 2, 8, 6, 7}, que[] = {{2, 5}, {1, 3}, {1, 5}, {