add cpp solution for Q2