Pls check no cases is satifed
logic and approach is correct
only change you have to do is
also print space after comma
Modified Code
if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like
: and don’t forgot to mark doubt as resolved 