Create a mapping of each character to its board coordinates (row, column).
Initialize the current position at (0, 0).
For each character in the target string:
a. Get the target character's board coordinates.
b. Move vertically first, then horizontally to avoid invalid moves when the target is 'z'.
c. Append the corresponding move characters ('U', 'D', 'L', 'R') to the path.
d. Append '!' to indicate the selection of the character.
e. Update the current position to the target character's position.