Merakey Interview Question

About the hypothetical cases and how I approached.