TechVariable Interview Question

flattening of array without using methods ?