Update Problem023.cpp
Change for to while in Problem023.cpp
Updating Problem045.cpp