Front of a Queue After a Sequence of Operations

Company: Ion Group - Hackerrank_17thjuly

Difficulty: easy