Can any one solve this question use c++ program?