It is possible to do it. You have to do string manipulation and the map each string to the character it represents. Check the site that posted that challenge here. You have to use CTE to do it in a set based statement.
You can have a table like:
select ' _ | ||_|', 0 union all
select ' | |', 1 ...
This will allow you to map the character to the numbers with a simple join.
I am sorry I do not post my full solution to this challenge here, but this question is still going on and they will be posting the best solution in about a month.
The whole idea of these challenges is to try to find how to do it and learn in the process.