AKUNA CAPITAL interview question

Implement two functions in strategy class according to the requirements.