IBM Interview Question

Nothing was that difficult