TikTok interview question

Reformat date, Kth largest substring.