Couchbase Interview Question

2 sum question for DSA