Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 297 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 297 Bytes

Rearrange a string in sorted order followed by the integer sum

Description

Given a string containing uppercase alphabets and integer digits (from 0 to 9), the task is to print the alphabets in the order followed by the sum of digits.

Examples

Input: "AC2BEW3"
Output: "ABCEW5"