XYZ (Turkey) Interview Question

Two sum question based on arrays