SAP interview question

how is grep coded in the linux kernel?