Cyware interview question

A dsa problem Two sum problem