Virtana interview question

Coding test one after another.