arr = [1, 2, 3, 4, 5] result = arr.minmax puts result.join(',')
arr = [1, 2, 3, 4, 5] result = arr.drop_while { |x| x < 3 } puts result.join(',')
arr = [1, 2, 3, 4, 5] result = arr.zip(arr.map { |x| x * 2 }) puts result.to_h
arr = [1, 2, 3, 4, 5] result = arr.count { |x| x.even? } puts result
arr = [1, 2, 3, 4, 5] result = arr.each_slice(2).to_a puts result.join(',')