Company: Meesho_29june
Difficulty: medium
StackOverFlow System Problem Description You are provided with the following abstract base class: class StackOverFlow { public: StackOverFlow(); virtual ~StackOverFlow() = default; virtual int addQuestion(string &content, string &author) = 0; virtual void deleteQuestion(int id) = 0; virtual void upVote(int id) = 0; virtual void downVote(int id) = 0; virtual pair<string, int> getQuestionById(int id) = 0; virtual vector<string> getTop10QuestionsByAuthor(string &author) = 0; explicit StackOverFlow(const int decayTime); virtual void decayTime(int) = 0; }; Function descriptions: int addQuestion(string &content, string &author) Adds a new question with the given content and author. Returns the unique ID of the question. void deleteQuestion(int id) Deletes the question with the given ID. If it does not exist or has already been deleted, no action is taken. Initially, the question had 0 votes and was not deleted. void upVote(int id) Increases the vote count of the given question by