Java implementation of the "Fibonacci Series" problem