class Solution { public: string customSortString(string S, string T) { sort(T.begin(),T.end(),[&S](char &a, char &b){ if (a==b) return a