Simple and easy Array
\nclass Solution\n{\npublic:\n    int concat(int a, int b)\n    {\n        string s1 = to_string(a);\n        string s2 = to_string(b);\n        string s = s1 +
```\nclass Solution\n{\npublic:\n    int concat(int a, int b)\n    {\n        string s1 = to_string(a);\n        string s2 = to_string(b);\n        string s = s1 + s2;\n        int c = stoi(s);\n        return c;\n    }\n    long long findTheArrayConcVal(vector<int> &nums)\n    {\n        long long ans = 0;\n        int n = nums.size();\n        int start = 0, end = n - 1;\n        while (start < end)\n        {\n            int x = concat(nums[start], nums[end]);\n            ans += x;\n            start++;\n            end--;\n        }\n        if (n % 2 != 0)\n        {\n            ans += nums[n / 2];\n        }\n        return ans;\n    }\n};\n```
['Array', 'Two Pointers', 'C++']