I will solve it in c++
I will solve it in c++