Generate the next lexicographic ordering
Company: DoorDash
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: Medium
Interview Round: Onsite
Quick Answer: This question evaluates understanding of permutations and lexicographic ordering, in-place array manipulation, handling of duplicate elements, and algorithmic complexity with constraints on O(n) time and O(1) extra space.