Fast Enterprises Interview Question

Four miners/ flashlight logic question