Amazon has expressed interest in buying TikTok ahead of deadline for ByteDance to sell the social media app or face a U.S.