Question d’entretien chez LINE

Using javascript search max profit by the problem input