6. How to cross the
bridge
Solution: Josh starts crossing after the troll
has checked the bridge. When he gets halfway
across(after 2 minutes), he turns around and
goes back in the direction he came from. When
the troll comes out for his next check, it stops
Josh and tells him to turn around and go back.
That means Josh can finish crossing the bridge
in exactly the direction he wants to go.