Windcave interview question

Smart pointers, shared locks, inheritance with references