Can a function be both even and odd functions?

yes