Question d’entretien chez Apple

Write a C function to isolate n bits at offset k.