Completed #38
Final brute force solution.  Not effective.  Needs a simpler one.