IBM interview question

Hackerrank programming test online test