Count of ordered pairs (i, j) such that arr[i] and arr[j] concatenates to X
Given an array arr[] of size N and an integer X, the task is to find the number of ordered pairs (i, j) such that i != j and X is the concatenation of the numbers arr[i] and arr[j] Examples: Input: N = 4, arr[] = {1, 212, 12, 12}, X = 1212Output: 3Explanation: X = 1212 can be obtained by concatenati