brute force solved