sol: https://ide.codingblocks.com/s/416571
prob: https://hack.codingblocks.com/app/contests/2022/381/problem
In the lecture we were taught to solve the problem using user defined pair class but in the problem they have already written the function using inbuilt pair class although the logic is same I want to use the inbuilt one please tell how do I change my code for the same