Pregunta de entrevista de Intuit

easy brain teaser is asked before coding question