Added c++ solution, even if it's not correct as it overflows.