https://camera-optical-zoom.blogspot.com/2024/02/permutations-with-fixed-previous.html
Permutations With Fixed Previous Element In Python