Akamai interview question

rotate linked list at given n