title: How to determine if a string can generate another string
body: <p>How can i  Develop an application that analyzes and tells the user if a string (A) can GENERATE to another chain (B), for example </p>
  
  <p>Check-in:
  Chain A: "I love to program in Java"
  Chain B: "Jam"</p>
  
  <p>Check out:
  Yes! The string "I love programming in Java" can generate the string "Jam".</p>