IBM Interview Question

Nothing tough.. it was pretty simple..