2610. Convert an Array Into a 2D Array With Conditions - Medium | DSA Corner | Talentd