AKUNA CAPITAL Interview Question

Math question, sequences