Getting wrong answer

can you please tell whats wrong in this code .

in your initialisation of op it takes garbage value so if op had size greater than the size of your req string it outputs some garbage characters left over from the previous initialisation of op