Implemented Brute Search Algo in C