NodeJS Submission

I am new to Codechef. So I want to practice this things here.I know only NodeJS.

So I think It will always take more time than C++ or any other programming language.

I am trying to submit this solution ::

it is always give me time limit.

So in future if I want to practice more than is it necessary that I should change programming language?

for implementing data structures, it is always preferred to use c++, also for competitive programming c++ is always preferred over any other due to STL. So it is a good thought to go ahead with c++