Compute minimal operations and optimal server pairing | Amazon