Infosys interview question

Questions based on trees, list , mainly dynamic programming