[C++] 3 liner recursive soln
\nclass Solution {\npublic:\n    int prod(int n)\n    {\n        return (n < 10) ? n : n%10 * prod(n/10);\n    }\n    \n    int sum(int n)\n    {\n        retur
```\nclass Solution {\npublic:\n    int prod(int n)\n    {\n        return (n < 10) ? n : n%10 * prod(n/10);\n    }\n    \n    int sum(int n)\n    {\n        return (n < 10) ? n : n%10 + sum(n/10);\n    }\n    \n    int subtractProductAndSum(int n) \n    {\n        return prod(n) - sum(n);    \n    }\n};\n```
['Recursion', 'C']