added bruteforce python solution to problem 4