Added solution for second problem: fibonacci