Hacker robot Ekupai is trying to hack a supercomputer. He needs a cheat code X to hack this computer where X is a non-negative integer. He doesn’t know how to find X. But he somehow managed to find an integer N and he believes that N is equal to 6X. Unfortunately some (possibly zero) digits of N are missing.

This is a companion discussion topic for the original entry at https://toph.co/p/ekupai

Can anyone tell why I’m getting the wrong answer in test case2
Here is my code https://toph.co/s/669407