IBM interview question

I got Leetcode coding questions