Solved Distincst in C