Leetcode 3668. Restore Finishing Order | Hello Interview