Topic: Backtracking Problem / Level: intermediate

Problem: Generate all possible ways to arrange k books on a shelf from a collection of n books.

Run the code to see the output here...