Hackerrank - The British and American Style of Spelling

Problem Statement
A description of the problem can be found on Hackerrank.

Solution
For each word in each sentence check if the word contains "ze" (US) or "se" (UK).

I created solution in:

All solutions are also available on my GitHub.

Scala

Ruby

JavaScript

Java