IBM interview question

asked implementation questions