IBM interview question

Some programming leet-code style questions