Google interview question

ask LC questions, about medium difficulty