I want to sort single string in alphabetical order what wrong in my code please help
Statement:create a program such that it accepts a string S of N characters. S should only contains upper and lower-case characters. Numbers and special case characters are not allowed in S.Now rearrange the string S in alphabetical order (a to z) . In order to modify the string S consider the following rule. Do not differentiate between lower-case and upper-case character of same alphabet and if both cases are available of same character preserve the order as of the original string. For example, if string S is âCxBdbazAâ here alphabet âbâ and âaâ both present in upper case and lower case. but upper case âBâ appears before lower case âbâ and lower-case âaâ appears before upper-case âAâ so in modified string alphabet orders will be âaABbCdxzâ. Input:first line contains string S of contains N characters without space. Output: output contains the rearranged string S. Constraints:5<=N<=25 take character array size as 25 to store string. Example: Hello eHllo https://code.sololearn.com/c5YsbHJ5JnDo/?r