ques37.cpp