IBM interview question

Three easy level LeetCode questions.