For a simpliest example, define continuous $f:\mathbb R\to\mathbb R$ to be locally convex in neighborhood $U\subset\mathbb R$ if $\{y>f(x)|x\in U\}$ is a convex set.
$f:\mathbb R\to\mathbb R$ to be locally concave in $U\subset\mathbb R$ if $\{y<f(x)|x\in U\}$ is a convex set.
Say $f$ is neither convex nor concave everywhere if $f$ is neither locally concave nor convex in all neighborhood set $U\subset\mathbb R$ and $|U|>3$. Is it possible? (I guess yes)
Say $f$ is neither convex nor concave everywhere if $f$ is neither locally concave nor convex in all measure non zero neighborhood set $U\subset\mathbb R$. Is it possible? (I guess no)