Importance of Time Problem

The code is giving wrong output. Code : https://ide.codingblocks.com/s/213244

@Chirag-Jain-1414278322030453
Issue was with input
You had to insert elements at bottom while taking input
See this for reference https://ide.codingblocks.com/s/213696

If your doubt is resolved please close it.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.