IBM Interview Question

Everything was straight forward