Report seen similar question in interview
Java
Test Cases
Input
words =
Output
Expected