Vauld interview question

Coding assignment given. and one general round