IBM interview question

Test coding question/logic and question Reading code