C# - Simple char count solution
csharp\npublic string SortString(string s) \n{\n\tStringBuilder sb = new StringBuilder();\n\tint[] chars = new int[26];\n\tforeach(var c in s)\n\t{\n\t\tchars[c
```csharp\npublic string SortString(string s) \n{\n\tStringBuilder sb = new StringBuilder();\n\tint[] chars = new int[26];\n\tforeach(var c in s)\n\t{\n\t\tchars[c - \'a\']++;\n\t}\n\n\tint count = 0;\n\n\twhile(count < s.Length)\n\t{\n\t\tfor(int i = 0; i < chars.Length; i++)\n\t\t{\n\t\t\tif(chars[i] > 0)\n\t\t\t{\n\t\t\t\tsb.Append((char)(i + \'a\'));\n\t\t\t\tchars[i]--;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = chars.Length - 1; i >= 0; i--)\n\t\t{\n\t\t\tif(chars[i] > 0)\n\t\t\t{\n\t\t\t\tsb.Append((char)(i + \'a\'));\n\t\t\t\tchars[i]--;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t}\n\n\tstring result = sb.ToString();\n\treturn result; \n}\n```
[]