Evening Star Interview Question

Make a state machine based on given parameters