Amazon Interview Question

Two sum problem but had different edge cases