IBM interview question

Problem solving questions using DSA