Update 1089.cpp