educative.io

Queue implementation problem seems incorrect

Why is the output 6 8 12 14 instead of 6 8 10 12 14?