I\'m trying to check whether a given string contains only Latin letters and no two uppercase and no two lowercase letters are in adjacent positions. I started with this plan: