A Mountain Pass Theorem for a Suitable Class of Functions