ruby brute-force solution for 104