The only normal which is perpendicular to the x axis is when f(x) has a minimum or maximum (f'(x)=0) between the given limits. So you need to differentiate f and set the derivative to zero. Solve for x. This is the value of k.
Because of the suspected error in the definition of f(x) in the question it isn’t possible to calculate k.