Let $f$ be a function defined on integers such that $f\left( 0 \right) =0$, $f\left( 2n+1 \right) =f\left( n \right) -1$ and $f\left( 2n \right) =-2f\left( n \right)$. Find the value of $f\left( 10 \right)$.

Your answer seems reasonable.
Find out if you're right!