I am not entirely sure how to approach this problem so I would very much appreciate some help on getting me on the right track...
I know that $\, f \in BV([a,b]) \iff V_{a}^{b} f < \infty \iff$ sup{$T(f,P) | P \in \mathscr{P}[a,b] $} $< \infty$.
We also have that since $f$ is a continuous function on a compact set $[a,b]$ that $f$ must attain its maximum and minimum values on $[a,b]$. In other words, $f$ is bounded.
So $m := \inf_{x \in [a,b]} f(x)$ and $M := \sup_{x \in [a,b]} f(x)$ and that $m \leq f(x) \leq M$ for all $x \in [a,b]$.
But I'm not sure how to proceed.. I started off doing a proof by contradiction:
Suppose that $f$ were continuous and has finitely many minima and maxima on $[a,b]$, but $f \notin BV([a,b]).$ Then it must be the case that $\sup${$T(f,P) | P \in \mathscr{P}[a,b] $} $\rightarrow \infty$. I'm not sure where to go next...
Thanks in advance for the help!