CGI interview question

problems based on dynamic programming