ques30.cpp