PureCode Software Interview Question

How do you handle schema design and indexing in MongoDB for optimizing read and write operations?