Pergunta de entrevista da empresa Cadence Design Systems

Asked one question related logical puzzle