Count the characters

Write a simple tail-recursive function to count the number of occurrences of a character in a given string.

Sample Input/Output

Input:
a
Mary had a little lamb

Output: 4

Your submission should be named rollNumber_lab6_3.tar.gz with the folder named countchars, which should have the file:

On running make your code should create an executable named main