Can you teall what is wrong and how to resolve it?

my answer is correct but its showing it wrong can you see

hello @akash_281
yeah ur code is correct.
it is not passing becasue in evry row u r print some extra space in the starting.
check this->
image

first printing val and then space will resolve this issue