Collective Health interview question

Variations of 2-Sum and increased with difficulty.