C Program to Find the Frequency of Elements in an Array