The problem description in the linked problem is wrong. It says "the third biggest" but the example uses "the third smallest". Your solution seems ...
Lee mas