How to solve it can you explain it sir/maam

How to solve it can you explain it sir/maam

@ashishsoni1412 All you need to do is if the Character is an UpperCase then print a new Line otherwise simply print your character in any case. Another thing you need to handle is that you must not print a new Line if we encounter a UpperCase character in first line.