Couchbase interview question

String manipulation, JSON tree traversal