XYZ (Turkey) interview question

Two sum question based on arrays