TekShapers interview question

Tough