Pergunta de entrevista da empresa Wallet Hub

Write a Java method to calculate the Nth integer in the Fibonacci sequence.