The logic is correct but getting WA?

The just applied the same logic, as per the demo video, still i am getting WA