Intain interview question

How to tackle over fitting and under fitting?