Infoseek interview question

Pattern questions of programming.