IBM interview question

To solve two coding challenges in 45 minutes.