what mistake in this algorithm ?? i know what is perfect algo but I want to know what’s wrong with my algo??