Existence of solutions for high order ordinary differential equations with some periodic-type boundary condition