Satisfactory Pairs

HackerRank - pairs-again