Millennium Interview Question

Why weak pointer needed, and how it’s related to shared.