In the first pasuk of Parshat Chayai Sarah (Genesis 23:1), the Torah says:
א. וַיִּהְיוּ חַיֵּי שָׂרָה מֵאָה שָׁנָה וְעֶשְׂרִים שָׁנָה וְשֶׁבַע שָׁנִים שְׁנֵי חַיֵּי שָׂרָה:
And the life of Sarah was one hundred years and twenty years and seven years; [these were] the years of the life of Sarah.
Rashi (Quoting the Midrash [Ber. Rab. 58:1]) says:
ויהיו חיי שרה מאה שנה ועשרים שנה ושבע שנים: לכך נכתב שנה בכל כלל וכלל, לומר לך שכל אחד נדרש לעצמו, בת מאה כבת עשרים לחטא, מה בת עשרים לא חטאה, שהרי אינה בת עונשין, אף בת מאה בלא חטא, ובת עשרים כבת שבע ליופי:
The lifetime of Sarah consisted of one hundred years, twenty years and seven years.
The reason the word year is written at every digit is to tell you that every digit is to be explained by itself. [When she was] 100 years old she was like a 20 year old, regarding sin. Just as when she was 20 she was not considered as having sinned since she was not yet subject to punishment, so, too, at 100 she had not sinned. And when she was 20 she was like a seven-year-old, regarding [her] beauty.
Shouldn't it be the other way around? Shouldn't it be like 7 years for Sin and like 20 years for beauty?