help/editorial/hints for BLACKCOM

This question is from SnackDown Elimination Round 2017 and name is BLACKCOM. If someone can give any hints or tips on how dp is used to preprocessed to get the answer it would be delightful.

2 Likes