Jumpcut interview question

Sequential function