skeleton of Morgan And A String solution