Apple interview question

implement fibbonaci series in java