A pair with least energy

Problem Name:
A pair with least energy
Site:HackerEarth
Links:
Tags:
Problem setters: