Amazon Interview Question

basic puzzle, about testing cycle