There are many things wrong here.
1) Duplicate code: If you want your reshteh method to work using the "x" argument, then remove the following code block from the reshteh method and update the for block to use the x variable instead of the str variable.
Console.WriteLine("enter a string");
string str = Console.ReadLine();
int y= Convert.ToInt32(str);
for( int i = x.Length -1; i >= 0; i-- ) ...