Word finding logic

Hi @sshitol

Check this

Thanks
Ashwin.S