IBM Interview Question

Develop a hard Leetcode question