Array of Objects to Matrix - DSA Problem | Talentd