How many 8s are there in the following number sequence which are immediately preceded by 5 but not immediately followed by 3?
3 8 5 8 4 5 8 3 9 8 8 5 8 8 8 9 3
Let use see the following :
3 8 8 4 5 8 3 9 8 8 5 8 8 8 9 3
Clearly, two such 8s are there.