Couchbase interview question

Write a function to perform X in Go