REI Interview Question

write code to display the string in the array and count if there are duplicate words - eg. string arr="john anne john john anne"

Interview Answer

Anonymous

Sep 10, 2018

for this you might wanna use linq query as that's what they expected....... first split words, then use groupby to group duplicate words then use count method to count grouped words