IBM Interview Question

I didnt crack the written exam