Wipro Lighting interview question

Jav programs count repeated words and missing numbers