HackerRank Digit Frequency in c problem solution - TheCScience