Ruby - Enumerable and Collection Processing
What will be the output of this Ruby code?
arr = [[2, 3], [4, 5]]
result = arr.flat_map { |sub| sub.select { |x| x.odd? } }
puts result.inspect