easy brute force solution