AKUNA CAPITAL interview question

Math question, sequences