Update ques5.cpp