every integer starting from 1 which is a perfect square of an integer will be standing at the end and all others are sitting...
so if the process is repeated n times, then the total numbers between 1 to n which are squares of an integer will be standing and remaining will be sitting...
im sure abt this... but it is a sort of question which is required to be done for exams like CAT.. i dont think jee would ever contain such sort of ques...