Mirraw interview question

Some coding exercise online which was common for all