public static void Main()
Console.WriteLine("Hello World");
Console.WriteLine(Replace("My name is name","name","saritha"));
static string Replace(string str, string originalstr, string replaceStr){
int indexOfOriginalstr=0;
char[] charArray=str.ToCharArray();
for(int i=0;i<str.Length;i++){
if(str[i]==originalstr[0]){
for(int j=0;j<originalstr.Length;j++){
charArray[indexOfOriginalstr+j]=replaceStr[j];
return new string(charArray);