Large deviation function of a tracer position in single file diffusion