add array patition solution.