Given a non-nullint, return a new array with double the length with a last element with the same value as
the last element of the original array and all other values 0.
The original array will be length 1 or more.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.