BogoSort Practice problem

Problem link: BOGOSORT Problem - CodeChef

can anyone explain for n=3 and n=4 ?
answer for n=3 is 10/3 and for n=4 is 5.