Phenom Interview Question

Problems based on algorithms