Pergunta de entrevista da empresa Barclays

some logrithmic expression and validate the range for int double/int/float