Describe your issue
in this problem, sample input is “hello world”, sample output is “HeLlO wOrLd”. Problem asked for an alternating case. But code in the solution returns “HeLlO WoRlD” for the same input. Whether we switch case for space characters or not is ambiguous.