Pergunta de entrevista da empresa Verily

Basic coding question to build upon (not LC style). Tip: Get your basics right!