make dictionary
HashSet < String > D = new HashSet < String > ( ) ; D . Add ( " poon " ) ; D . Add ( " plee " ) ; D . Add ( " same " ) ; D . Add ( " poie " ) ; D . Add ( " plie " ) ; D . Add ( " poin " ) ; D . Add ( " plea " ) ; String start = " toon " ; String target = " plea " ; Console . Write ( " Length ▁ of ▁ shortest ▁ chain ▁ is : ▁ " + shortestChainLen ( start , target , D ) ) ; } }