Amazon interview question

Coding questions...like median and valid anagram