Pergunta de entrevista da empresa LSEG (London Stock Exchange Group)

Question on Dp+2-3 puzzles type question