Please check why Answer is coming Wrong

As in the whats app group sir told that there are some HIND videos for some problems. So plz upload them somewhere and share the link.

**HINT…

Hi @shantanu.kaushik21,
Take input of the string srt=scn.next() and put a ‘s’ at the end of “Not Duplicate”.

yes, the code worked.

can you please tell me the difference between scr.next() and scr.nextLine(). while taking String as input.

Hey,scr.next() reads the word only till space ,donot include space between the words when reading but scn.nextLine() includes space between the words too.