So basically using a+b=log(e^a * e^b), however, with a little trick to avoid inf and nan

```
class Solution {
public:
int getSum(int a, int b) {
double A = (double)a;
double B = (double)b;
return (int)(round(B*log(exp(A/B)*exp(1))));
}
};
```