Marks & Clerk Interview Question

How does the engine works?