HW#4.3

I understand the solution provided, but I don’t understand why my approach failed. Can somebody please analyze my approach please.