Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use gray code to generate a n-bit sequence.
Rotate the sequence such that its first element is start.
Solve with full IDE support and test cases