Compiler issue :


#1

When submitted the first time it said time limit exceeded. Submitting the same code again after some time says its correct. Wasted so much of my time.