Write a method that takes a 4x4 array of ints representing a
2048 board (with 0 for empty squares). The method should modify the array
it’s given to shift the numbers up according to the rules of 2048: every
number should move up so all the zeros end up below all the non-zero
values in each column. Additionally, pairs of the same numbers in the
column should be combined into their sum. So a column containing (from top
to bottom): 2, 2, 0, 0 would end up containing 4, 0, 0, 0 after the two 2s
combine. So would a column containing 0, 2, 0, 2, as the 2s would slide up
and then combine into a 4. Note that a column containing 2, 2, 4, 0 would
turn into 4, 4, 0, 0 because the combining only happens one pair at a
time: the existing 4 doesn’t combine with the 4 produced by combining the
two 2s.
This method does not return anything.