Proteinea Interview Question

Do we perform feature engineering before or after train-test-split? Why?