IBM interview question

Two coding problems that you could write in language of choice