// - Our input provides us "n" values of x and p(x)
// - p(x) is a 1-to-1 function, so it has an inverse.
// - We create the function representing the inverse of p(x), and represent it as an array: int [] p_inverse
// - We need find a y where p(p(y)) = x. This equation can be rewritten as y = p_inverse(p_inverse(x)), which is the version of the equation we use to calculate and print "y".