I found an interesting problem on https://www.codewars.com/kata/56044de2aa75e28875000017:
You have to create a method "compoundArray" which should take as input two int arrays of different length and return one int array with numbers of both arrays shuffled one by one. 
```Example: 
Input - {1,2,3,4,5,6} and {9,8,7,6} 
Output - {1,9,2,8,3,7,4,6,5,6}
```

I tried it in Python, but could not do it. Can you solve it?
def compound_array(a, b):
    answer = []
    while a or b:
        if a: answer.append(a.pop(0))
        if b: answer.append(b.pop(0))
    return answer