Title:
Benchling – Software Engineer – Technical Phone Screen
Description:
Level: Mid/Senior
Education: Bachelor’s
Years of Experience (YOE): 8
Questions Asked:
- Traffic Light Simulation Problem:
- Prompt: Simulate a traffic light system for east-west (EW) and north-south (NS) directions. The system cycles through green, yellow, and red lights over a given number of ticks.
- Details: Ensure correct sequencing so that EW and NS do not have green simultaneously. Write code to output the light states at each tick.
- Follow-up: Discuss how to extend to arbitrary durations and additional traffic patterns.