Pergunta de entrevista da empresa LinkedIn

raise double a to int b, without using Math class in Java