I am getting WA in this problem.
I have used BFS by appending digits that can be used, and checking MOD every time, if zero I return.
This is my solution, it gives WA (On custom output it seems to work fine).
Please help me, I’ve spent 3+ hours on this already