Pregunta de entrevista de Bristlecone

basic aptitude question 2 coding question