3
vector<int> shortestToChar(string s, char c) {9
for (int i = 0; i < s.length(); i++) {11
// storing all the c character location i.e 'e' in sk i.e [3,5,6,11]14
for (int i = 0; i < s.length(); i++) {15
for (int j = 0; j < sk.size(); j++) {16
// now subtracting every i value with all value of character locations17
// and storing the minimum in res vector.19
mins = abs(sk[j] - i);22
// in first iteration [3-0=3,5-0=5,6-0=6,11-0=0] so removing the minimum23
// elemnet from this that is 3 and stroing is res.