Triangle solution

Please look at file triangle_facts.rb for solution of the Triangle Facts exercise.
Explicit non-nil checks are usually redundant.