ques16.cpp