Hackerrank – Fibonacci Numbers

Problem Statement
A description of the problem can be found on Hackerrank.

Solution
Use the equation for Fibonacci numbers in problem statement:
Fibonacci(n) = 0 , n = 1
Fibonacci(n) = 1 , n = 2
Fibonacci(n) = Fibonacci(n-1) + Fibonacci(n-2) , n > 2

I created solution in:

All solutions are also available on my GitHub.

Scala