TaraSpan interview question

Mostly puzzles