HackerRank Vector-Sort in C++ problem solution - TheCScience