TechVariable interview question

flattening of array without using methods ?