Added Chain Inspection solution in Ruby