#include <iostream>
#include <string>
#include <algorithm>
#include <iomanip>
int main() {
//make lower
std::string a = "HELLO";
std::transform(a.begin(), a.end(), a.begin(), ::tolower);
std::cout << a << std::endl;
//reverse string
std::string b{a.rbegin(), a.rend()};
std::cout << b << std::endl;
//contains
bool c = (b.find('e') != std::string::npos);
std::cout << std::boolalpha << c << std::endl;
//remove at index
std::string s = "hello";
s.erase(s.begin() +4); // or s.erase(4,1);
std::cout<< s << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8aW9tYW5pcD4KCmludCBtYWluKCkgewoJLy9tYWtlIGxvd2VyCglzdGQ6OnN0cmluZyBhID0gIkhFTExPIjsKCXN0ZDo6dHJhbnNmb3JtKGEuYmVnaW4oKSwgYS5lbmQoKSwgYS5iZWdpbigpLCA6OnRvbG93ZXIpOwoJc3RkOjpjb3V0IDw8IGEgPDwgc3RkOjplbmRsOwoJCgkvL3JldmVyc2Ugc3RyaW5nCglzdGQ6OnN0cmluZyBie2EucmJlZ2luKCksIGEucmVuZCgpfTsKCXN0ZDo6Y291dCA8PCBiIDw8IHN0ZDo6ZW5kbDsKCQoJLy9jb250YWlucwoJYm9vbCBjID0gKGIuZmluZCgnZScpICE9IHN0ZDo6c3RyaW5nOjpucG9zKTsKCXN0ZDo6Y291dCA8PCBzdGQ6OmJvb2xhbHBoYSA8PCBjIDw8IHN0ZDo6ZW5kbDsKCQoJLy9yZW1vdmUgYXQgaW5kZXgKCXN0ZDo6c3RyaW5nIHMgPSAiaGVsbG8iOwoJcy5lcmFzZShzLmJlZ2luKCkgKzQpOyAvLyBvciBzLmVyYXNlKDQsMSk7CglzdGQ6OmNvdXQ8PCBzIDw8IHN0ZDo6ZW5kbDsKfQ==