[SUBS]RANK

Solution to problem 258