As reported: ServiceNow Senior Software Engineer loop (Hyderabad), round 2, Aug 2025: Java concepts, a stock buy-and-sell style DSA problem, and the LLD of a book lending system. The discussion was on entities and API functionality; full working code was not expected.
Design a book lending system:
- the library has books, each with one or more physical copies;
- members search the catalog, borrow available copies, and return them;
- a member can place a hold on a book with no available copy;
- late returns incur fines; members have borrowing limits.
Cover the entities and relationships, the APIs and the main flows.