
You are given an array of integers seats representing seat popularity ratings. Rearrange the seats such that the highest ratings are at the center, and the lower ratings are towards the sides. Specifically, seats at odd indices should have higher ratings than seats at even indices. If there is an odd number of seats, the middle seat should have the highest rating. Return the rearranged array of seat ratings.
Access the full code editor, ThinkBuddy AI hints, and track your progress.