Find median of array;
Find string rotation point