Why does my solution not pass any test cases?

I’ve run and checked my solution and it’s working fine, then why it doesn’t pass any test cases? Please check! I’ve been trying to submit this from yesterday and its not working. I even got a mail stating that I have multiple submissions so I had to write in CB IDE provided too, but there was no response from CB after that. I would really appreciate if you could devote some time and look into this problem and I’m very disappointed in how CB handles the doubt section. Please help.

Your pattern is correct now. But it is starting with a space on every line.
Submit and check now

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.