The rank follows the routine.

Solutions - Medium - Question