Pattern magic problem

Can you please provide me with the correct solution to this problem? Thank you

Hi @astha119btcse21_7380491a239a3b9b,

https://ide.codingblocks.com/s/606006?_ga=2.228781660.1349480821.1650699623-564174853.1650699623

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.

The code that you shared is showing runtime error

Hi @astha119btcse21_7380491a239a3b9b for me it’s working fine try again

it is working fine in the ide b ut here it is not getting compiled

@astha119btcse21_7380491a239a3b9b maybe issue with backend ill confirm with team

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.