Question d’entretien chez Amazon

They asked a coding question about two pointers and dynamic programming