Doubt regarding the question

  1. Does each string in the given array contains unique characters.
    For example. can the given array be [“ab” , “abb” , cb"]
    2 . Can our answer contain the substring of given string?
    For example if the given array is [“ab” , “cb”]
    Can the answer be abc i.e. 3?

1)No , string can contain duplicates as well.So string can be “bbbb” as well
2) Yes it can

https://paste.ofcode.org/Swd6NiPLqTRt5fC8vVdrk

The code which I have sent above is passing only 4 cases.The 5th test case is not getting passed.Please check

Hey sorry I am having trouble reading your code. I don’t know Java so you have to open another doubt for the same.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.