If -else used in Solving Strong Password

I agree that solving these problems in Java is much simpler. But In order, to get an understanding of how pointers work and how you could create your own functions, Instead of using predefined functions . This is the prime reason, why I have chosen C programming to solve this section.