IBM Interview Question

A few leetcode style questions