Best solutions for Array Manipulation