Tokopedia interview question

String manipulation ( Reverse string, most frequent char, swapping values ), XPath