HealthEdge Software Interview Question

Comparable and comparator, two sum problem