nums
순회function sortArrayByParityII(nums: number[]): number[] {
const odd = []
const even = []
const result = []
for(const num of nums) {
if((num & 1) === 1) odd.push(num)
else even.push(num)
}
while(odd.length) {
result.push(even.pop(), odd.pop())
}
return result
};