shell of java implemtation, with failing test; shell of ruby implmentation with test passing because of hardcoded value in code. Sample data in ruby.