ques12.cpp