I am struggling to find a mistake in my algorithm for this problem.https://www.dropbox.com/s/osr54i0k8djoryj/ABA12C.cpp?dl=0Can somebody please help me. This is really confusing to me.