HackerRank Structuring the Document in c problem solution - TheCScience