IBM interview question

Logic puzzles Leetcode medium level: 2 questions Testing skills