Google interview question

Questions were based on JD