How to add element to next free space in an array

How to add element to next free space in an array

More to explore

Based on this image's title: “How to add element to next free space in an array