What is (&:to_i) shorthand for?
something.map { |char| char.to_i }
Explain method unshift and which class it modifies
unshift(obj, ...) → ary Prepends objects to the front of self, moving other elements upwards. Use on class Array#prepend or Array#unshift
https://ruby-doc.org/core-2.5.0/Array.html#method-i-unshift
What does the method divmod do and to which class does it apply?
divmod(numeric) → array
Returns an array containing the quotient and modulus obtained by dividing num by numeric. Class: Numeric
https://ruby-doc.org/core-2.5.3/Numeric.html#method-i-divmod