A few more solutions
addinf sample c++ solution