Amazon Interview Question

Two sum programming coding question..