Create ques6.cpp