IBM interview question

API coding question on assessment