HackerRank Querying the Document in c problem solution - TheCScience