Avoid intermediate array
Avoid intermediate array