Find pairs with the minimum absolute difference | Microsoft Interview Question