what is the problem the ques is showing run error on submitting
Replace pi question
@royprincejmp your time complexity is high, you do not need to make changes in the old array only, you can simply keep printing the string (character wise)and as soon you encounter pi print 3.14.
If this resolves your doubt mark it as resolved.