IBM iX Interview Question

To solve a Leetcode question