Pregunta de entrevista de Meditab Software

mathematical Coding question was asked to me.