Couchbase Interview Question

String manipulation, JSON tree traversal