Pregunta de entrevista de IBM

Logic puzzles Leetcode medium level: 2 questions Testing skills