Meta interview question

Standard dynamic problems.