Pregunta de entrevista de Amazon

1 Problem solving hard leetcode question and LP