Amazon interview question

Two sum programming coding question..