Pergunta de entrevista da empresa Microsoft

easy array rotation and some database related questions