You can put this solution on YOUR website! Do they have to sit all together or can there be spaces in between students?
In other words is,
A_B_CDE acceptable or must there be a student in each adjacent seat such as
ABCDE__ or _ABCDE_ where "_" is an empty seat.
Please repost your question with the additional information.