TikTok interview question

5 coding questions testing the programming ability as well as maths ability.