The single- and two-photon scattering in the waveguide QED coupling to a giant atom