Vostu interview question

Math and coding test, plus whiteboard coding