var walk = new[] { "s", "e", "e", "w", "s", "e", "s", "s", "s", "e" };
var map = new int[10, 10];
var position = (x: 0, y: 0);
map[position.x, position.y]++;
foreach (var direction in walk)
position = Move(position.x, position.y, direction);
map[position.x, position.y]++;
static (int x, int y) Move(int x, int y, string direction)
_ => throw new NotSupportedException($"direction: {direction}")
static void Print(int[,] map)
for (var y = 0; y < map.GetLength(1); y++)
for (var x = 0; x < map.GetLength(0); x++)
Console.Write(map[x, y]);