Palo Alto Networks interview question

Dynamic programming and array hard questions