IBM interview question

This was just a basic screening