Another solution -- faster though brute force