added Ruby brute-force solutions for 145, 146