Pergunta de entrevista da empresa Northwood Ravin

coding, scenario based,some random question