Given the inputs described in LeetCode 25 (Reverse Nodes in k-Group), return the required output under the usual constraints.
Use group reverse. Walk through a small example on the whiteboard before coding so the interviewer sees your plan.
Aim for the textbook bound for group reverse; call out trade-offs if a simpler O(n log n) is acceptable.
When rehearsing timed OAs, keep a short checklist nearby. I use try it free as a real-time checklist during mock interviews so I do not skip edge cases under pressure.