1. Given an array arr of size n, you need to write a program to find if there exists a pair of elements in the array whose difference is equals to target. 2. If there exists such a pair print it, otherwise print -1.
Input Format
Input is managed for you
Output Format
Output is managed for you
Constraints
1 <= target <= 10^4 1 <= arr[i], n <= 10^5
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
6 5 2 3 80 5 20 78
Output
2 80