Druva interview question

Solve a mathematics recurrence problem