Pergunta de entrevista da empresa Verily

Phone interview for solving a coding question (Medium level difficulty)