Persistent Systems interview question

Calculate spaces and alphabates in the given string.