Using KarelJRobot on repl.it

 

You will need to draw any east-west walls or north-south walls that you want in your program.

The command to draw an east-west wall is like this:
World.placeEWWall(2, 4, 5);

The command to draw a north-south wall is like this:
World.placeNSWall(1, 2, 3);

See the screenshot below for an example that includes these commands.