What's wrong in my approach?

Problem