Shopee interview question

Pretty basic algorithm questions (like Leetcode easy, but easier).