```
class Solution {
public:
bool isHappy(int n) {
int multiply = 0;
int temp = 0;
int cut = n;
while(multiply != 1){
temp = cut % 10;
multiply = (temp*temp) + multiply;
cut = cut/10;
if(cut == 0) cut = multiply;
}
if (multiply == 1) return true;
}
};
```

Any help appreciated. Not sure why it won't work if you pass in 68..