If you over-contributed to your 401(k), you have to report the excess contributions as wages on your 2018 tax return.
Page 10 of IRS Pub 525 under Excess deferrals (the IRS term for 401(k) contribution is deferral) tells us to include the excess deferrals as income on line 1 of Form 1040 if the money was returned after the end of the tax year but by April 15th of the following tax year. You need to report only the excess contribution, not any money generated by the investment of the excess contribution. What you earned will be covered by a 1099-R for the following tax year and will be entered then as a normal 1099-R.
Below is how to do this in TurboTax: