randomized queue and first brute force