HW6: Debug Ex8_14.cpp

  1. The sample code of Ex8_14.cpp does not generate the expected result. Try to find out the bug and fix it.
  2. Test your code with the following input: