Google interview question

leetcode profile and the concepts that solved for