Reagrding the input to this program

It’s not clear to me that in what form we are giving the input?..Whether the sample is a whole string or different strings its not clear…plz mention the input format correctly…

no u have to take 1 by 1 input until u get the terminating comdition

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.