Brute Force Algorithm Geeksforgeeks