IBM Interview Question

Basic dsa leetcode easy question