#include <iostream> #include <string> using namespace std; bool isStringEqual(const string& s1, int pos1, const string& s2, int pos2, int len) { if (pos1 + len > s1.length() || pos2 + len > s2.length()) { return false; } while (len > 0) { if...