Prerequisites for the following question of DECODE NERDS?

Will someone please tell me, what are the prerequisites for solving this question of
"Decode Nerds contest "=> Question Link.
Want to solve this eagerly. Please HELP!

I guess its a greedy algorithm-based question where in each step you are choosing your piece optimally to maximize your score.