Dynetics interview question

Some coding problem (sorry I forgot this one)