Google interview question

case interview