Thanks Soma! Jim, isn't that the time complexity? I am interested in the memory complexity!