My code does not pass two test cases will you please explain it to me

You have taken small x instead of capital X.