title: Java | How to remove common word from a string and then concatenate uncommon words?
body: <p>I was asked in an interview round that you have two Paragraphs</p>
  
  <pre><code>P1 = I am Lalit
  P2 = Lalit Kumar
  </code></pre>
  
  <p>Now find the common word, not the character, then print the uncommon only.</p>
  
  <pre><code>Ex: I am Kumar
  </code></pre>
  
  <p>What could be the best way to solve this problem?</p>