Domanda di colloquio di Amazon

They asked a coding question about two pointers and dynamic programming