Importance of time doubt

how can i push the element to the last of the queue. i am providing the code link plzz correct my code.
code link: https://ide.codingblocks.com/s/95420