Conversion from binary to octal

https://hack.codingblocks.com/submission/727252
This is my solution to the problem in which we have to convert the number from decimal to octal.
Although the answer I am getting is correct each time, still no test cases are getting passed.

Your submission is private, therefore
Copy and paste your code on
https://ide.codingblocks.com/#/
Save your code there, then share link of your code.