@Kushagra गुप्ता
When we put $x = 1,$ then option $(B)$ given $ y = -1$
When we put $x = -1,$ then option $(B)$ given $ y = -1$
When we put $x = 0,$ then option $(B)$ given $ y = 0$
When we put $x = 2,$ then option $(B)$ given $ y = 0$
When we put $x = -2,$ then option $(B)$ given $ y = 0$
When we put $x = 3,$ then option $(B)$ given $ y = 1$
When we put $x = -3,$ then option $(B)$ given $ y = 1$
Only Option $(B)$ satisfies the given graph.