The fastest way how to check how many words in string array is in the correct place
I have a string:
The quick brown fox jumps over the lazy dog
And a random method, which are mixing these words in the array.
brown jumps over The lazy fox quick the dog
What is the fastest way to check how many words and which ones are in the correct place using java or kotlin ?