Pregunta de entrevista de Shopee

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