find all pairs whose sum is n v1 in kotlin