Texas Instruments Interview Question

Flow chart of a washing machine