C Runtime Error In Replace Function Stack Overflow

C Runtime Error In Replace Function Stack Overflow