ques14.cpp