2 test cases are failing

code:https://ide.codingblocks.com/s/269148

hello @bhaskar0_0
check ur code for input ->
999
output should be 900 (because leading 0’s are not allowed).

but urs is giving 0.

@aman212yadav still one case is failing

for n->8 output should be 1 .
urs will give 8.

remove that if statement (at the very top)

ho gya.code:https://ide.codingblocks.com/s/269156