Grass Valley interview question

What problem does weak_ptr solve in C++?