Convert an Array Into a 2D Array With Conditions - DSA Problem | Talentd