This video explains how to understand the state diagram given in any problem and how to determine the working of state machine just by looking at the state …

source