Merck Interview Question

Star method