IBM Interview Question

I would say the difficulty level was medium.