I need very simple maze solving algorithm (problably Wall follower) solution. There must be method char solution(char maze) that takes in an maze and it should return the same maze with solution way to the end point. Also, all traversed path can be marked as a part of whole solution. Start point is A and endpoint is B. X is wall. I need very simple solution, problably one or two class if it's possible.
X X X
X XXX X