HackerRank solutions in C/C++