Sponsored
Use these hints if you're stuck. Try solving on your own first.
Convert the given number into base k.
Solve with full IDE support and test cases