AKUNA CAPITAL interview question

A basic coding problem on codepair