With the last layer oriented, permute it.
Your text is published under CC BY-SA 4.0, credited to Algopedia contributors.