Encode categories and build date, ratio, group and lag features without leakage.
Feature engineering means building the columns a model learns from. In this topic you encode categories with one-hot, ordinal, frequency and smoothed target encoding, take parts out of dates, build ratios and flags, add customer totals to every order, and create lag and running features from past orders only. You also turn text into numbers and put weekdays on a circle with sine and cosine.
Interviewers ask about features to test your judgement as much as your code: which encoding suits which column, how to group rare categories, and how to avoid leakage, where a feature uses information that is only known after the outcome.
Watch the order of rows in the lag questions: sort by date first, and leave the current order out of every feature built from history.