IBM Interview Question

medium and easy LC questions