I should probably explain how the rank system works. You don’t have to beat the level within the time limit, doing so only increases your rank. In fact, beating the level without dying and beating the level with all of the trinkets also affect your rank. V is the best rank, with S being the next best, then A, then B.