^^^ map is sorterd by default :)
hey man in your check you are using
if(s[l]!=' ')
what about , . and other special characters? do an isChar check and try submitting your solution :) e.g
When riding your bicycle backwards down a one-way street, if the
wheel falls of a canoe, how many ball ...