To have the full interactive experience, please view this video on itempool.
This lecture is based on the Reversort problem (Google Code Jam 2021 Qualifiers, Problem A), and you can find a link to it here.
This is a straightforward implementation problem and the code discussed in the video can be found here.