LinkedIn Interview Question

Optimize a class for the TwoSum function.