convert 1D array into 2D array solution

welcome to shbcf.ru