Knoldus Software interview question

some Question based on DP