In this program we will write a small game using link list:
Program structure:
ABCDEF - starting from A.
ABDEF - count 3 to C, C is eliminated. Continue from D.
ABDE - count 3 to F, F is eliminated. Continue from A. (since A is the next letter if you imagine this is a circular pattern).
ABE - count 3 to D, D is eliminated. Continue from E.
AE - count 3 to B, B is eliminated. Continue from E.
A - count 3 to E, E is eliminated. A is the last surviving letter.