Clarivate Interview Question

Hacker rank: getNumPairs and getMinOperations. Coding challenge: file IO, sorting, maps...