IBM Interview Question

Two coding question base on Data Structures and Algorithms