Each university and individual course has its own collaboration guidelines. Collaborating with a friend on a part of the assignment could be completely kosher. Not enough information to judge.
I explicitly prohibited students from working together on individual assignments. There were plenty of group projects for doing so, but for the individual assignments I wanted the students to work alone.
The student clearly violated the Stern Honor Code, and he is openly admitting that.