Question d’entretien chez Apple

Rotate array around K And a problem using heaps and one on binary trees