Are the numbers, in the problem http://www.codechef.com/NOV14/problems/SEAPERM2, surely from 1 to n?
@aadil_ahmad Yeah…surely