Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
We should check all the substrings of num with a length of k and see if it is a divisor of num.
We can more easily obtain the substrings by converting num into a string and converting back to an integer to check for divisibility.