(i) Seat the 5 boys first: 5!=120 ways. They leave 6 gaps: 4 gaps between boys and 2 outer gaps at the ends. If both end chairs hold boys, no girl may use an outer gap, so the 4 girls take the 4 inner gaps, one each, in 4P4=4!=24 ways. Total 120×24=2880.
(ii) Suppose Bhuvan is in the left end chair. Then he must be the first person in the row, so no girl may sit in the gap to his left. The other 4 boys sit in 4!=24 ways, and only 5 gaps remain for the girls: 5P4=120 ways. This gives 24×120=2880 seatings. The right end gives another 2880 in the same way. Total 2×2880=5760.