Filter the array with another array containing the names to be filtered from the first array <pre><code>input : ['Ram', 'Shyam' , 'Hari' , 'Gopal' , 'Hawa'] ['Shyam' , 'Hawa'] output: ['Ram' , 'Hari' , 'Gopal'] </code></pre>