def noonerize(numbers):
    if not isinstance(numbers[0], int) or not isinstance(numbers[1], int):
        return 'invalid array'

    a, b = numbers

    return abs(int(str(b)[0] + str(a)[1:]) - int(str(a)[0] + str(b)[1:]))

'''
Spoonerize... with numbers... numberize?... numboonerize?... noonerize? ...anyway!

You will create a function which takes an array of two positive integers,
spoonerizes them, and returns the positive difference between them as a
single number or 0 if the numbers are equal:

[123, 456] = 423 - 156 = 267

Your code must test that all array items are numbers and return "invalid array"
if it finds that either item is not a number. The provided array will always contain 2 elements.

When the inputs are valid, they will always be integers, no floats will be passed.
However, you must take into account that the numbers will be of varying magnitude,
between and within test cases
'''
