FactSet Interview Question

write a function to convert string to int. Basic OOP concepts in C++, such as virtual function, constructor, destructor, deep copy, shallow copy, polymorphism. The same question as 2.4 in CareerCup_Top_150_Questions 4th hashtable and BST