GlobalLogic interview question

Some template related question