Verily interview question

easy algorithms and data structures