BairesDev interview question

3 C++ DSA problems for 2 hours.