Pregunta de entrevista de Huawei Technologies

puzzels are bit difficult to answer