Pergunta de entrevista da empresa Huawei Technologies

1)How smart pointers work?what are the kinds of smart pointers and its difference? 2)How to find and replace a repeated elements in vector to a structure?