We know that $f(x)$ is odd if $-f(x)=f(-x)$. The function is $$f(x)=\begin{cases}2x-1&\text{if $-2<x<0$},\\2x+1&\text{if $0\leq x\leq2$}.\end{cases}$$
Now I want to know if $f$ is odd, so I query to WA is Piecewise[{{2x-1,-2<x<0},{2x+1,0<=x<=2}}] an odd function?:
I get the answer:
Now, if we query plot -Piecewise[{{2x-1,-2<x<0},{2x+1,0<=x<=2}}] from -2 to 2 then we see the graph of $-f(x)$:
If we query plot Piecewise[{{2(-x)-1,-2<-x<0},{2(-x)+1,0<=-x<=2}}] from -2 to 2 then we obtain $f(-x)$:
As the plots are the same, then $-f(x)=f(-x)$, so the function is odd.
However in the first input, WA did not recognize that. Why?





As noted in the comments, $f(0)=1 \ne -f(-0)$. Also, the domain you have specified for $f$ includes $2$ but not $-2$. Mathematica's Piecewise functions have zero as a default value (you can actually see this in your first plot), and so your function has $f(-2)=0$ but $f(2)=5$.
Repeating your query with strict inequalities everywhere gives a function which Wolfram correctly says is odd.